//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class SpeedUpCrops extends LogicCommand {
    private final int cmdId = 24;
    private final int speedupId;

    public SpeedUpCrops(int tt, int speedupId) {
        super(tt);
        this.speedupId = speedupId;
    }

    public int getCommandId() {
        return 24;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(24);
        stream.writeInt(this.speedupId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
